package com.linq.cool.beauty.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.linq.cool.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @Author: yqlin
 * @Date: 2021/2/13 22:15
 * @Description: 服务店面
 * @Version: 1.0.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "beauty_service_store")
public class BeautyServiceStore extends BaseEntity {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 店面名称
     */
    @NotBlank(message = "店面名称不能为空")
    @TableField(value = "`name`")
    private String name;

    /**
     * 店面图片
     */
    @NotBlank(message = "店面图片不能为空")
    @TableField(value = "pic")
    private String pic;

    /**
     * 联系人名称
     */
    @NotBlank(message = "联系人不能为空")
    @TableField(value = "contact_name")
    private String contactName;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空")
    @TableField(value = "contact_phone")
    private String contactPhone;

    /**
     * 省
     */
    @NotBlank(message = "省不能为空")
    @TableField(value = "province")
    private String province;

    /**
     * 市
     */
    @NotBlank(message = "市不能为空")
    @TableField(value = "city")
    private String city;

    /**
     * 区
     */
    @NotBlank(message = "区不能为空")
    @TableField(value = "county")
    private String county;

    /**
     * 详细地址
     */
    @NotBlank(message = "详细地址不能为空")
    @TableField(value = "address")
    private String address;

    /**
     * 营业时间起
     */
    @NotBlank(message = "营业时间不能为空")
    @TableField(value = "business_time")
    private String businessTime;

    @NotBlank(message = "描述信息不能为空")
    @TableField(value = "s_desc")
    private String sDesc;
}